home *** CD-ROM | disk | FTP | other *** search
- Path: news.umbc.edu!not-for-mail
- From: schlein@umbc.edu (Jonas J. Schlein)
- Newsgroups: comp.lang.c
- Subject: Re: What's so different about 2-D arrays???
- Date: 1 Jan 1996 17:55:10 -0500
- Organization: University of Maryland Baltimore County
- Message-ID: <4c9ooe$q6a@umbc9.umbc.edu>
- References: <4c799b$q9d@umbc9.umbc.edu> <4c8kdh$4qg@news1.usa.pipeline.com>
- NNTP-Posting-Host: f-umbc9.umbc.edu
- NNTP-Posting-User: schlein
-
- Mark Winfield <mark@fredblog.demon.co.uk> wrote:
- > void main()
-
- Jonas Schlein <schlein@gl.umbc.edu> wrote:
- > Please read the FAQ. This will show you why 'int main (void)' is the
- > correct declaration for your particular program.
-
- Pete <grantp@usa.pipeline.com> wrote:
- > As long as we're being so nit-picky, where in the FAQ does it say
- > exactly that? All I can find is "int main ()".
-
- Question 11.12 in the FAQ book states:
-
- "Can I declare main as void to shut off these warnings about main not
- returning a value?"
-
- The excerpt of the answer I was referring to is:
-
- "...In other words, there are just two valid declarations:
-
- int main (void)
- int main (int argc, char **argv)
-
- ..."
-
- Since the original poster was not utilizing command line arguments
- of any kind the former of the 2 is correct for his program.
- --
- "If it wasn't for C, we would be using BASI, PASAL, and OBOL."
-
- Jonas J. Schlein (schlein@gl.umbc.edu)
-